## Sid Meier's Civilization 4
## Copyright Firaxis Games 2005

from CvPythonExtensions import *
import CvUtil
import CvEventManager
import sys
import Animosity
	
gc = CyGlobalContext()

objAnimosity = Animosity.Animosity()

# globals
###################################################
class CvAnimosityEventManager:
	def __init__(self, eventManager):
		# initialize base class
		eventManager.addEventHandler("endUnitTurn", self.onEndUnitTurn)
	
		Animosity.loadConfigurationData()

	# Handles the event where a unit moves in the game.
	def onEndUnitTurn(self, argsList):
		genericArgs = argsList[0][0]
		objUnit = genericArgs[0]
		
		objAnimosity.handleEndUnitTurn(objUnit)